home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 5
/
Aminet 5 - March 1995.iso
/
Aminet
/
disk
/
cdrom
/
YACDP1_2.lha
/
YACDP 1.2
/
AREXX
/
UpsideDown.yacdp
< prev
next >
Wrap
Text File
|
1994-12-05
|
881b
|
34 lines
/* $VER: 1.2 © 1994 by Frank Würkner. Play songs in reverse order. */
SIGNAL ON SYNTAX /* check syntax */
SIGNAL ON ERROR /* check if command succeeds */
OPTIONS FAILAT 6 /* ignore warnings */
ADDRESS 'YACDP' /* send to YACDP */
/* -------------------------- BEGIN OF YOUR CODE ------------------------- */
'GETVAR STATUS'
if (STATUS > 2) then do
'GETVAR MAXTRACK'
pl='*'
do i=MAXTRACK to 1 by -1
pl=pl || i
if (i ~= 1) then
pl=pl || ','
end
'PUTVAR PLAYMODE=2'
'PUTVAR PROGRAMLIST='pl
end
/* --------------------------- END OF YOUR CODE -------------------------- */
EXIT
SYNTAX:
SAY "AREXX error at line" SIGL ":" ERRORTEXT(RC)
EXIT
ERROR:
SAY "YACDP error at line" SIGL ":" ERR
EXIT